package com.zj.inoutput.dal.mapper;

import com.zj.inoutput.dal.dataobj.Export;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author DuanYu <a>Email:z-houjie@qq.com</a>
 * @date 2022-02-08 16:17
 */
public interface ExportMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Export export);

    int insertSelective(Export export);

    Export selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Export export);

    int updateByPrimaryKey(Export export);

    void insertSlice(@Param("info") List<Map<String, Object>> info, @Param("location") String location);

    List<Export> selectByTopic(Integer topic);

    List<String> selectSliceInfoByLocation(@Param("location") String location, @Param("ids") List<Integer> ids);
}